import { request } from '../utils/request'


// 我的银行卡
export const getBankCard = () => {
  return request({
    url: '/Alipay/Bank/myBankCard',
    method: 'GET',
  })
}

// 获取银行列表
export const getBankList = (data) => {
  return request({
    url: '/Alipay/Bank/bankList',
    method: 'GET',
   data
  })
}
// 获取宝付协议
export const getYiFuBaoAgree = (data) => {
  return request({
    url: '/Alipay/Bank/getYiFuBaoAgree',
    method: 'GET',
    data
  })
}
// 获取银行协议
export const getBankAgree = (bank_id) => {
  console.log(bank_id);
  return request({
    url: '/Alipay/Bank/getBankAgree',
    method: 'GET',
    data:{ bank_id: bank_id }
  })
}




// 预绑卡
export const readySign = (data) => {
  return request({
    url: '/Alipay/Bank/readySign',
    method: 'POST',
    data
  })
}
// 确认绑卡
export const confirmSign = (data) => {
  return request({	
    url: '/Alipay/Bank/confirmSigning',
    method: 'POST',
    data
  })
}
// 查询绑卡
export const queryBind = (data) => {
  return request({
    url: '/Alipay/Bank/queryBind',
    method: 'POST',
    data
  })
}
// 解除绑卡
export const readyPay = (data) => {
  return request({
    url: '/Alipay/Bank/readyPay',
    method: 'POST',
    data
  })
}

export const confirmPay = (data) => {
  return request({
    url: '/Alipay/Bank/confirmPay',
    method: 'POST',
    data
  })
}


